package com.api.shopapi.service;


import com.api.shopapi.entity.Device;
import com.api.shopapi.entity.dto.DeviceDTO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface DeviceService {
    int insert(Device device);

    Device getByDeviceCode(String deviceCode);

    int update(Device device);

    PageInfo<DeviceDTO> getPageList(int pageIndex, int pageSize, String governmentCode, String businessCode);

    Device getByServeCode(String serveCode);

    Device getByImei(String imei);


    List<Device> getListByBusinessCode(String businessCode);


}
